﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wlog.Model;

namespace wlog.Shell.Storage.Blob
{
    public class BlobDeleteCommand : BlobStorageCommand
    {
        public override void Setup(string[] args)
        {
            base.Setup(args);
            base.CreateTask(() => { RunCommand(); });
        }
        public OutputChannel RunCommand()
        {
            try
            {
                //var BlobAPI = GetBlobAccount();
                //var Blobs = BlobAPI.ListBlobs();
                //if (Blobs.Any())
                //{
                //    Results.WriteLine("Connected {0} Showing Blobs", BlobAPI.BaseUri);
                //    Results.WriteLine("\t{0:-30}\t{1}", "Name", "Uri");
                //}
                //foreach (var Blob in Blobs)
                //{
                //    Results.WriteLine("\t{0:-30}\t{1}", Blob.Name, Blob.Uri);
                //}
            }
            catch (Exception azureEx)
            {
                Results.WriteLine("Error ccreating Blob {0} ", azureEx.Message);
            }
            return Results;
        }

    }
}
